﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Data.Common;
using System.Data.SqlClient;

namespace AlumniProject
{
    public partial class MasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["name"] != null)
            {
                lblLoiChao.Text = "Chào bạn " + Session["name"].ToString();
                pnlLoiChao.Visible = true;
                pnlDangNhapDK.Visible = false;
            }
            else
            {
                pnlLoiChao.Visible = false;
                pnlDangNhapDK.Visible = true;
            }
        }

        //protected void btnDangXuat_Click(object sender, EventArgs e)
        //{
        //    Session["user"] = null;
        //    Session["admin"] = null;
        //    pnlDangNhapDK.Visible = true;
        //    pnlDangXuat.Visible = false;
        //    Response.Redirect("DangNhap.aspx");
        //}
    }
}